/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 * @author zanish
 */
public class WinMotor extends Subsystem {
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    
    Jaguar jaguar;
    
    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
    
    public WinMotor(){
        jaguar = new Jaguar(7);
    }
    
    public void setSpeed(double speed){
        jaguar.set(speed);
    }
    
    public double getSpeed(){
        double speed = jaguar.get();
        return speed;
    }
}
